package com.springboot.thymeleaf.springbootthymeleaf.entity.returnVo;

import com.springboot.thymeleaf.springbootthymeleaf.constant.ExpressConstant;
import com.springboot.thymeleaf.springbootthymeleaf.entity.vo.SuErResponseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Classname ${小柯}
 * @Description TODO
 * @Date 2019/10/24 20:56
 * @Created by Administrator
 */

@ApiModel(value = "BookingReturnVo", description = "所有快递返回入口")
public class BookingReturnVo {

    @ApiModelProperty(value = "第三方快递", required = true)
    private String expressThirdType;

    @ApiModelProperty(value = "预报状态", required = true)
    private String status;
    @ApiModelProperty(value = "成功、电子运单号", required = true)
    private String courierNumber;
    @ApiModelProperty(value = "失败编码", required = true)
    private String errorCode;
    @ApiModelProperty(value = "失败原因", required = true)
    private String errorVal;
    @ApiModelProperty(value = "速尔快递返回值")
    private SuErResponseVo suErResponseVo;


    public void getSuccess(String courierNumber){
        this.courierNumber = courierNumber;
        this.status = ExpressConstant.STATUS_OK;
    }

    public void getFails(String errorCode, String errorVal){
        this.errorCode = errorCode;
        this.errorVal = errorVal;
        this.status = ExpressConstant.STATUS_ERROR;

    }


    public String getExpressThirdType() {
        return expressThirdType;
    }

    public void setExpressThirdType(String expressThirdType) {
        this.expressThirdType = expressThirdType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCourierNumber() {
        return courierNumber;
    }

    public void setCourierNumber(String courierNumber) {
        this.courierNumber = courierNumber;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorVal() {
        return errorVal;
    }

    public void setErrorVal(String errorVal) {
        this.errorVal = errorVal;
    }

    public SuErResponseVo getSuErResponseVo() {
        return suErResponseVo;
    }

    public void setSuErResponseVo(SuErResponseVo suErResponseVo) {
        this.suErResponseVo = suErResponseVo;
    }
}
